package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户积分任务记录表,针对对用户做任务
 */
@Getter
@Setter
@Document(collection = "user_point_task_info")
public class UserPointTaskInfo extends EntityBase {
    @Indexed
    private String userId;
    @Indexed
    private String appId;
    private String platform;
    private TaskBizType taskBizType;
    /**
     * 0:未开始,1:完成,2:未完成
     */
    private Integer status = 0;
    /**
     * 完成时间
     */
    private Date doneTime;
    /**
     * 当天的时间,当天的开始时间
     */
    private Date dayTime;
    /**
     * 工作量
     */
    private Integer quantity;

}
